package com.flyco.modules.sms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 满减满折
 * @Author: flyco
 * @Date:   2020-05-06
 * @Version: V1.0
 */
@Data
@TableName("sms_discount")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sms_discount对象", description="满减满折")
public class SmsDiscount {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
	private String name;
	/**使用平台：all->全部；app->app端；wap->移动端；pc->pc端；weixinMini->微信小程序*/
	@Excel(name = "使用平台：all->全部；app->app端；wap->移动端；pc->pc端；weixinMini->微信小程序", width = 15)
    @ApiModelProperty(value = "使用平台：all->全部；app->app端；wap->移动端；pc->pc端；weixinMini->微信小程序")
	@Dict(dicCode = "coupon_platform")
	private String platform;
	/**类型；1:满金额减 2:满金额折  3:满件减 4:满件折 5:同商品第几件几折*/
	@Excel(name = "类型；1:满金额减 2:满金额折  3:满件减 4:满件折 5:同商品第几件几折", width = 15)
    @ApiModelProperty(value = "类型；1:满金额减 2:满金额折  3:满件减 4:满件折 5:同商品第几件几折")
	@Dict(dicCode = "discount_type")
	private Integer type;
	/**减免类型;1:按满足最高层级减一次,2:每满一次减一次*/
	@Excel(name = "减免类型;1:按满足最高层级减一次,2:每满一次减一次", width = 15)
    @ApiModelProperty(value = "减免类型;1:按满足最高层级减一次,2:每满一次减一次")
	@Dict(dicCode = "discount_discount_type")
	private Integer discountType;
	/**startTime*/
	@Excel(name = "startTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "startTime")
	private Date startTime;
	/**endTime*/
	@Excel(name = "endTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "endTime")
	private Date endTime;
	/**0-未开始 1-已开始*/
	@Excel(name = "0-未开始 1-已开始", width = 15)
    @ApiModelProperty(value = "0-未开始 1-已开始")
	private Integer status;
	/**使用类型：0->全场通用；1->指定分类；2->指定商品*/
	@Excel(name = "使用类型：0->全场通用；1->指定分类；2->指定商品", width = 15)
    @ApiModelProperty(value = "使用类型：0->全场通用；1->指定分类；2->指定商品")
	@Dict(dicCode = "coupon_use_type")
	private Integer useType;
	/**指定门店标识*/
	@Excel(name = "指定门店标识", width = 15)
	@ApiModelProperty(value = "指定门店标识")
	@Dict(dicCode = "yn")
	private Integer storeFlag;
	/**可用券导购级别，9:经理;5:店长;1:导购*/
	@Excel(name = "可用券导购级别，9:经理;5:店长;1:导购", width = 15)
	@ApiModelProperty(value = "可用券导购级别，9:经理;5:店长;1:导购")
	@Dict(dicCode = "sales_position")
	private Integer storePosition;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
	private String note;
	/**可领取的会员类型：0->无限时*/
	@Excel(name = "可领取的会员类型：0->无限时", width = 15)
    @ApiModelProperty(value = "可领取的会员类型：0->无限时")
	private Integer memberLevel;
	/**分组 0：通用，1：叠加*/
	@Excel(name = "分组 0：通用，1：叠加", width = 15)
	@ApiModelProperty(value = "分组 0：通用，1：叠加")
	@Dict(dicCode = "discount_group")
	private Integer discountGroup;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
